﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Pong_Xvna
{
    public class GameManager
    {
        
        private static GameManager instance;

        private GameManager() { }

        public static GameManager Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new GameManager();
                }
                return instance;
            }
        }

        public void Restart(Pad player1, AIPad player2, Ball ball)
        {
            ball.Position = new Vector2(740, 330);
            ball.Velocity = new Vector2(-5, 0);
            player1.Position = new Vector2(0, 300);
            player2.Position = new Vector2(780, 300);
            ball.svs = new SlowState();
            ball.VelocityX();
        }
    }
}
